Guard against selection requestor disappearing
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 20 Oct 2015 16:39:57 +0000 (12:39 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Thu, 22 Oct 2015 15:05:03 +0000 (11:05 -0400)
commit01136618b820d31bdfbb033bfce09b476150567d
treecc7c756e8c392d55843ff63ab8b0baa5cba1cb96
parentd3bf602c60e8899f5e0e1ee6c6e26cd1550cfb3b
Guard against selection requestor disappearing

We made a number of unchecked accesses to the selection requestor,
which could cause X errors if the selection requestor vanished
(or we were sent invalid events). Add error traps around all of them.

See https://bugzilla.redhat.com/show_bug.cgi?id=1210814 for an
example of a crash that could be caused by this. (There are about
1000 instances of such a crash in http://retrace.fedoraproject.org
though no linked bug reports specifically talk about cut-and-paste
or DND.)

https://bugzilla.gnome.org/show_bug.cgi?id=756881
gtk/gtkselection.c